<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<script language="javascript" src="../../../../../js/jquery.js"></script>
<script language="javascript" src="../../../../../js/common.js"></script>
<script language="javascript" src="../../../../../js/My97DatePicker/WdatePicker.js"></script>
<link rel="stylesheet" type="text/css" href="../../../../../js/jquery-easyui-1.3.5/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../../../../../js/jquery-easyui-1.3.5/themes/icon.css">
<script type="text/javascript" src="../../../../../js/jquery-easyui-1.3.5/jquery.easyui.min.js"></script>
<script type="text/javascript" src="../../../../../js/jquery-easyui-1.3.5/locale/easyui-lang-zh_CN.js"></script>
<link rel="stylesheet" type="text/css" href="../../../../../themes/css/tsm-icon.css" />

<script type="text/javascript" src="../../../../../js/lhgdialog/lhgdialog/lhgdialog.min.js?skin=iblue"></script>
<script> 
function onAddNode(id,code,pcode,url,text,treeid,icon){
	window.parent.onAddNode(null,id,code,pcode,url,text,treeid,icon);
}
function onRemoveNode(code,treeid){
	window.parent.onRemoveNode(null,code,treeid);
}
function onEditNode(code,text,treeid){
	window.parent.onEditNode(null,code,text,treeid);
}
function closeTab(){
	window.parent.closeTab();
}
</script>
<link rel="stylesheet" type="text/css" href="../../../../../themes/css/right.css" />
<link rel="stylesheet" type="text/css" href="../../../../../themes/css/blueStyle.css" />
 



<script type="text/javascript">
	 var grid;	
	 function onresize(){
		 resizeEasyGrid('grid');
	 }
	 $(document).ready(function(){
		grid = $("#grid"); 
	 });

	 function search1(){
		 var name = $("#name").val();
		 grid.datagrid('load',{name:name});
	 }
	

	
	</script>
	
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
    	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
	</head>  
	<body >
		<div id="divNav">
            <div style="text-align:left;float:left; margin-top:3px;" class="ico_win">结果</div>
        </div>
        
         <table id="tssGrid" class="easyui-datagrid" align="center" 
				data-options="
					singleSelect:true,
					autoRowHeight:false,
                     width: getWidth(),         
               		 height: getHeight(), 
                    toolbar: '#tb',
					pagination:true,
					pageSize:50,
					loadMsg:'数据正在努力加载中...'
					">
                   <thead >
                   		<tr>
                        <th data-options="field:'xxx1',width:100">IP地址</th>
                    	<th data-options="field:'xxx2',width:40,formatter:formatState">状态</th>
                        <th data-options="field:'xxx3',width:80">用途</th>
                        <th data-options="field:'xxx4',width:80">类型</th>
                        <th data-options="field:'xxx5',width:80">申请时间</th>
                        <th data-options="field:'xxx6',width:80">启用时间</th>
                        <th data-options="field:'xxx7',width:80">主行业</th>
                        <th data-options="field:'xxx8',width:80">子行业</th>
                        <th data-options="field:'xxx9',width:160">重点单位名称</th>
                        <th data-options="field:'xxx10',width:80">证件类型</th>
                        <th data-options="field:'xxx11',width:140,formatter:formatNO">证件编号</th>
                        <th data-options="field:'xxx19',width:80">结果</th>
                        <th data-options="field:'xxx20',width:80">操作</th>
					</tr>
				</thead>
               <tbody>
                <tr>
                    <td>192.168.72.138</td>
                    <td>已启用</td>
                    <td>通用</td>
                    <td>静态</td>
                    <td>2014-01-01</td>
                    <td>2014-01-01</td>
                    <td>互联网</td>
                    <td>网络安全</td>
                    <td>天融信软件有限公司</td>
                    <td>身份证</td>
                    <td>100</td>
                    <td>正确</td>
                    <td>处理</td>
                </tr>
                <tr>
                    <td>192.168.72.138</td>
                    <td>已启用</td>
                    <td>通用</td>
                    <td>静态</td>
                    <td>2014-01-01</td>
                    <td>2014-01-01</td>
                    <td>互联网</td>
                    <td>网络安全</td>
                    <td>天融信软件有限公司</td>
                    <td>身份证</td>
                    <td>20</td>
                    <td>异常</td>
                    <td>处理</td>
                </tr>
                <tr>
                    <td>192.168.72.138</td>
                    <td>已启用</td>
                    <td>通用</td>
                    <td>静态</td>
                    <td>2014-01-01</td>
                    <td>2014-01-01</td>
                    <td>互联网</td>
                    <td>网络安全</td>
                    <td>天融信软件有限公司</td>
                    <td>身份证</td>
                    <td>20</td>
                    <td>异常</td>
                    <td>处理</td>
                </tr>	
            </tbody>
			</table>
            <div id="tb" style="height: auto">
			<a href="javascript:edit()" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" >新增</a>
			<a href="edit.html" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" >编辑</a>
			<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true" onClick="delUnit()">删除</a>
            </div>
	</body>
</html>

<style>
.stateOk{
	background:url(../../../../../themes/images/ico/c1.gif) no-repeat;
	width:16px;
	height:16px;
	padding-right:16px;
}
.stateError{
	background:url(../../../../../themes/images/ico/c2.gif) no-repeat;
	width:16px;
	height:16px;
	padding-right:16px;
}
</style>
 <script>
 function formatState(value,row){
 		 if(value=='已启用'){
			 return '<a href="" title="已启用" class="stateOk"></a>';
		 }
		 if(value=='未启用'){
			 return '<a href="" title="未启用" class="stateError"></a>';
		 }
		 return value;
 }
 
 function formatNO(value,row){
 		 if(value > 30){
			return '<span style="color:red;">('+value+')</span>';
		 }
		 return '<span style="color:blue;">('+value+')</span>';
 }
 </script>